package com.waiting.es.entity;

import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.io.Serializable;

@Document(indexName = "position",shards = 1,replicas = 0)
public class EsPosition implements Serializable {

    @Id
    private Integer id;

    @Field(analyzer = "ik_max_word",type = FieldType.Text)
    private String companyname;

    @Field(analyzer = "ik_max_word",type = FieldType.Text)
    private String positionadvantage;

    @Field(analyzer = "ik_max_word",type = FieldType.Text)
    private String positionname;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCompanyname() {
        return companyname;
    }

    public void setCompanyname(String companyname) {
        this.companyname = companyname;
    }

    public String getPositionadvantage() {
        return positionadvantage;
    }

    public void setPositionadvantage(String positionadvantage) {
        this.positionadvantage = positionadvantage;
    }

    public String getPositionname() {
        return positionname;
    }

    public void setPositionname(String positionname) {
        this.positionname = positionname;
    }

    @Override
    public String toString() {
        return "EsPosition{" +
                "id=" + id +
                ", companyname='" + companyname + '\'' +
                ", positionadvantage='" + positionadvantage + '\'' +
                ", positionname='" + positionname + '\'' +
                '}';
    }
}
